@import '//at.alicdn.com/t/c/font_4619734_q18dmsp4lqm.css';

:root {
    --home-header: 60px;
    --home-footer: 120px;
    --layout-width: 85%;
    --color: #4c8fc6;
    --bottom-color: #435d80;
}

* {
    box-sizing: border-box;
}

// body {
// }

.home-header {
    position: relative;
    width: 100%;
    line-height: var(--home-header);
    z-index: 20;
    height: auto;

    .home-header-content {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 0 5%;
        backdrop-filter: blur(10px);
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
        z-index: 10;
        // animation: header-bkg-color 1s linear forwards;
        // animation-timeline: scroll();
        // animation-range: 70dvh 75dvh;

        .logo {
            font-size: 35px;
        }

        a {
            color: var(--color);
        }

        nav {

            .layui-bg-gray {
                background-color: transparent !important;
            }

            .layui-nav-bar {
                background-color: var(--color);
            }

            a {
                font-size: 1.1rem;
            }
        }

    }

    .layui-carousel {
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    }
}

.home-main {
    margin: 40px auto;
    width: var(--layout-width);
    min-height: calc(100dvh - 75dvh - var(--home-footer) - 40px);

    .home-section {
        animation: section-show 1s linear forwards;
        animation-timeline: view(100% 0);
        .title {
            margin: 0 auto;
            width: 30%;
            position: relative;
            text-align: center;
            font-size: 1.5rem;
            margin-bottom: 20px;
            border-left: 2px solid var(--color);
            border-right: 2px solid var(--color);

            span {
                background: linear-gradient(to right, var(--color), rgba(0, 0, 0, 1));
                background-clip: text;
                -webkit-background-clip: text;
                color: transparent;
            }

            &:after {
                content: "";
                bottom: 0;
                right: 0;
                position: absolute;
                height: 2px;
                width: 25%;
                background: linear-gradient(to left, var(--color), rgba(255, 255, 255, 0));
            }

            &::before {
                content: "";
                top: 0;
                left: 0;
                position: absolute;
                height: 2px;
                width: 25%;
                background: linear-gradient(to right, var(--color), rgba(255, 255, 255, 0));
            }
        }

        .section-content {
            margin-top: 30px;
            border-top: 1px solid rgba(0, 0, 0, .1);
            padding-top: 30px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            height: 300px;

            .section-content__item__top {
                margin-bottom: 20px;
                position: relative;
                padding-left: 15px;
                font-size: 1.2rem;
                display: flex;
                align-items: center;
                gap: 10px;

                .title-icon {
                    color: var(--color);
                    font-weight: 700;
                }

                a {
                    font-size: .8rem;
                    margin-left: auto;
                    color: rgba(0, 0, 0, .5);
                }
            }

            .section-content-item-content {
                display: flex;
                flex-direction: column;
                gap: 15px;

                .item-content-text {
                    padding-left: 7%;
                    position: relative;
                    font-size: 1rem;
                    display: -webkit-inline-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 1;
                    overflow: hidden;

                    &::before {
                        content: '';
                        position: absolute;
                        left: 4%;
                        top: 4px;
                        width: 8px;
                        height: 8px;
                        border-radius: 50%;
                        background-color: var(--color);
                    }
                }
            }
        }
    }
}


.home-footer {
    height: var(--home-footer);
    background-color: var(--bottom-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    .footer-logo {
        margin-top: 10px;
        height: 80px;
        transform: translate(-35px) scale(1.1);
    }

    .footer-content {
        color: rgba(255, 255, 255, .8);

        img {
            width: 20px;
            height: 20px;
        }
    }
}


// @keyframes header-bkg-color {
//     to {
//         background-color: #fff;
//     }
// }

@keyframes section-show {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}